package com.ccom.test.mqtt;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.integration.annotation.IntegrationComponentScan;
import org.springframework.stereotype.Component;

/**
 * @Description:
 * @Author: zjj
 * @Date: 2022/1/11
 */
@Data
@Component
@IntegrationComponentScan
@ConfigurationProperties(prefix = "ccom.mqtt")
public class MqttConfig {

    private String username;

    private String password;

    /**
     * 服务地址
     */
    private String servers;

    /**
     * 客户端id
     */
    private String clientId;

    /**
     * 服务端id
     */
    private int completionTimeout;

    /**
     * 默认主题
     */
    private String defaultTopic;
}
